package design_7_bridge.demo1.bridge;

import design_7_bridge.demo1.service.MsgService;


/**
 * 桥接类
 *
 * @author wangsong
 * @email 1720696548@qq.com
 * @date 2022/4/14 11:46
 */
public abstract class MsgServiceBridge {

	/**
	 * 需要桥接的对象
	 */
	protected MsgService msgService;
	/**
	 * 桥接对象需要的请求参数
	 */
	protected String msgData;


	public MsgServiceBridge(String msgData, MsgService msgService) {
		this.msgData = msgData;
		this.msgService = msgService;
	}


	/**
	 * 发送消息
	 */
	public abstract void sendMsg();

}
